﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestSqlite3DB
{
    public partial class TestSqlite3Frm : Form
    {
        public TestSqlite3Frm()
        {
            InitializeComponent();
        }
        /// <summary>
        /// add static method to append log to richtext box.
        /// </summary>
        public async void AppendText(string str)
        {

            await Task.Run(() =>
            {
                Console.WriteLine("");
                this.Invoke((Action)delegate
                {
                    this.richTextBox1.AppendText(str + "\r\n");
                });

            });

        }
        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}
